home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Vault: The Gold Collection
/
Software Vault - The Gold Collection (American Databankers) (1993).ISO
/
cdr49
/
352_01.zip
/
STRPPASN.CPP
< prev
next >
Wrap
C/C++ Source or Header
|
1993-04-10
|
493b
|
20 lines
// STRPPASN.CPP
// String::assign () transfers ownership of data to the String
// ( allows constructing Strings from allocated buffers
// ... without having to 'strdup' or make extra copies. )
//
#include "dblib.h"
void String::assign ( char *data )
{
typedef char *ASSIGN_DATA_PTR;
destruct ();
if ( data != NULL )
{
_NORMALIZE( data, ASSIGN_DATA_PTR );
s=data;
n=strlen (data);
}
}
//----------------- end of STRPPASS.CPP -----------------------